package org.pucc.data

import org.pucc.bean.{ImportConfig}

import scala.collection.mutable.ArrayBuffer

/**
 * 提供规则数据
 */
object DataManager {

  private val dataProvider: DataProvider = MysqlProvider()

  def getImportConfig(database: String, table: String): ArrayBuffer[ImportConfig] = {
    dataProvider.full[ImportConfig](database, table)
  }

  def getTestImportConfig(): ArrayBuffer[ImportConfig] = {
    val a = new ImportConfig()

    val b = new ImportConfig()

    val res = ArrayBuffer[ImportConfig]()
    res += a
    res += b
    res
  }

}
